StatusEntityManager<TContext, TEntity, TId, TStatusType>
A Manager inheriting fromTEntity’s current Status.
Syntax
Inheritance
Constructors
StatusEntityManager
Parameters
- dataContext
TContext: Theinstance to use for the database connection. Should be injected by the DI container. - messagePublisher
IMessagePublisher: The SimpleMessageBusinstance to use to publish Messages to a Queue. Should be injected by the DI container.
Properties
StatusTypes
Returns
List<TStatusType>Methods
Initialize
UpdateStatusAsync
Parameters
- entity
TEntity: The entity to update. - sortOrder int: The sort order of the target status type.
Returns
Task<bool> True if the status was successfully updated; otherwise, false.Exceptions
[Exception](https://learn.microsoft.com/dotnet/api/system.exception): Thrown when no status type is found with the specified sort order.